// 请求参数
export type EquipmentParams = SearchParams & PageCommonParams;

export interface SearchParams {
    equipmentNumber?: string;
    deviceName?: string;
    creator?: string;
    workshopName?: string;
    beginTime?: string;
    endTime?: string;
}

// 响应参数
export type EquipmentResponse = ResponseListCommon<EquipmentData>;

export interface EquipmentData {
    id: string;
    equipmentNumber: string;
    deviceName: string;
    deviceType: string;
    equipmentStatus: 'USING' | 'IDLE' | 'SCRAP' | 'IDLE_SCRAP';
    workshopId: number;
    workshopName: string;
    workshopCode: string;
    dataSource: 'EXCEL' | 'ARTIFICIAL';
    creator: string;
    createTime: string;
    updateTime: string;
    latestTime: string;
    equipmentId?: string;
}

// 新增 || 编辑设备管理
export interface AddEquipmentData {
    id?: number;
    equipmentNumber: string;
    deviceName: string;
    deviceType: string;
    equipmentStatus: 'IDLE' | 'USING' | 'REPAIRING' | 'IDLE_SCRAP';
    workshopName: string;
    workshopId: number;
}
